// get the client
const mysql = require('mysql2');

const options = {
    host: 'localhost',
    user: 'root',
    password: '' ,
    database: 'kaifamiao',
    waitForConnections: true,
    connectionLimit: 10,
    queueLimit: 0
}

// Create the connection pool. 
// The pool-specific settings are the defaults
const pool = mysql.createPool( options );

module.exports = pool ;